(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
'use strict';

$(function () {

    function isAndroid() {
        var userAgent = navigator.userAgent || navigator.vendor || window.opera;

        if (/android/i.test(userAgent)) {
            return true;
        }
        return false;
    }

    XT.getUserInfo(function (info) {
        XT.debug(info);
    });
    var app = new Vue({
        el: '#app',
        data: {},
        methods: {
            openWx: function openWx() {
                var that = this;
                that.openWxDialog();
                XT.bridge.call('copyToClipboard', { content: encodeURIComponent('百媚直播服务号') }, function (res) {
                    if (isAndroid()) {
                        setTimeout(function () {
                            that.openWxDialog();
                        }, 2000);
                    } else {
                        that.openWxDialog();
                    }
                });
            },
            'openWxDialog': function openWxDialog() {
                MINT.MessageBox({
                    title: '提示',
                    message: '点击微信右上角+号,"添加朋友"粘贴并搜索,即可关注',
                    showCancelButton: true,
                    confirmButtonText: '前往微信',
                    closeOnClickModal: true
                }).then(function (action) {
                    if (action == 'confirm') {
                        window.location.href = 'bmlive://bmlive/openWX';
                    }
                });
            }
        }
    });
});

},{}]},{},[1]);
